import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'


const SystemRoute:Array<RouteRecordRaw> = [
  {
    path:"/system",
    name:"systemManage",
    meta:{
      name:"系统管理",
      icon:"el-icon-setting",
      permissions:"systemManage",
    },
    component:() => import(/* webpackChunkName: "Index" */ '@/views/layout/layout.vue'),
    children:[
      {
        path:"/system/account",
        name:"accountList",
        meta:{
          name:"账号管理",
          icon:"el-icon-user",
          permissions:"accountManage",
        },
        component:() => import(/* webpackChunkName: "Index" */ '@/views/systemManage/accountManage/accountManage.vue'),
      },
      {
        path:"/system/roles",
        name:"rolesManage",
        meta:{
          name:"角色管理",
          icon:"el-icon-s-custom",
          permissions:"rolesManage",
        },
        component:() => import(/* webpackChunkName: "Index" */ '@/views/systemManage/rolesManage/rolesManage.vue'),
      },
      {
        path:"/system/permissions",
        name:"permissionsManage",
        meta:{
          name:"权限管理",
          icon:"el-icon-s-check",
          permissions:"permissionsManage",
        },
        component:() => import(/* webpackChunkName: "Index" */ '@/views/systemManage/permissionsManage/permissionsManage.vue'),
      },
    ]
  }
]

export default SystemRoute